<?php

namespace App\Library\Requests\Pet;

use App\Library\Requests\Base\BaseDTORequest;

class PetAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'name' => 'nullable|string|max:30',
            'categoryId_2' => 'required|integer|min:3',
            'categoryId_3' => 'required|integer|min:7',
            'box' => 'nullable|string|max:50',
            'sex' => 'required|integer|between:1,2',
            'earCode' => 'nullable|string|max:50',
            'certificateCode' => 'nullable|string|max:100',
            'weight' => 'required|decimal:2',
            'health' => 'required|integer|between:1,3',
            'showQrCode' => 'required|integer|between:1,2',
            'protect' => 'required|integer|between:1,2',
            'node' => 'nullable|string|max:1000',
            'label' => 'nullable|string|max:200',
            'stage' => 'nullable|string|max:50',
            'gene' => 'nullable|string|max:50',
            'bloodMale' => 'nullable|string|max:50',
            'bloodFemale' => 'nullable|string|max:50',
            'feedHdId' => 'nullable|integer|min:1',
            'guideHdId' => 'nullable|integer|min:1',
            'content' => 'nullable|string|max:5000',
            'contentImgIdJson' => 'nullable|array',
        ];
    }
}
